package com.jiankangjin.transsystem.common;

/**
 * 系统常量定义
 * 订单表:	订单状态ORD_STAT, 支付状态ORD_PAY_STAT, 退款状态ORD_REFUND_STAT
 * 支付记录表:	支付状态PAY_STAT, 退款状态REFUND_STAT
 * 返回给前端:	RESP_STAT
 */
public class Constant {
	
	/*****************************订单状态********************************/
	public static final String ORD_STAT_CODE_INIT 			= "0000";
	public static final String ORD_STAT_MSG_INIT 			= "待支付";
	public static final String ORD_STAT_CODE_PROCESSING 	= "0001";
	public static final String ORD_STAT_MSG_PROCESSING 		= "支付中";
	public static final String ORD_STAT_CODE_TIMEOUT 		= "0002";
	public static final String ORD_STAT_MSG_TIMEOUT 		= "已过期";
	public static final String ORD_STAT_CODE_CANCEL 		= "0003";
	public static final String ORD_STAT_MSG_CANCEL 			= "已作废";
	public static final String ORD_STAT_CODE_FAIL 			= "0004";
	public static final String ORD_STAT_MSG_FAIL 			= "支付失败";
	public static final String ORD_STAT_CODE_SUCCESS 		= "1001";
	public static final String ORD_STAT_MSG_SUCCESS 		= "支付成功";
	
	/*****************************订单支付状态********************************/
	public static final String ORD_PAY_STAT_CODE_INIT		= "0000";
	public static final String ORD_PAY_STAT_MSG_INIT		= "未支付";
	public static final String ORD_PAY_STAT_CODE_PARTSUCCESS= "0001";
	public static final String ORD_PAY_STAT_MSG_PARTSUCCESS	= "部分支付";
	public static final String ORD_PAY_STAT_CODE_SUCCESS	= "1001";
	public static final String ORD_PAY_STAT_MSG_SUCCESS		= "全额支付";
	
	/*****************************交易支付状态********************************/
	public static final String PAY_STAT_CODE_INIT 			= "0000";
	public static final String PAY_STAT_MSG_INIT 			= "未支付";
	public static final String PAY_STAT_CODE_PROCESSING 	= "0021";
	public static final String PAY_STAT_MSG_PROCESSING 		= "支付中";
	public static final String PAY_STAT_CODE_FAIL 			= "0041";
	public static final String PAY_STAT_MSG_FAIL 			= "支付失败";
	public static final String PAY_STAT_CODE_SUCCESS 		= "1001";
	public static final String PAY_STAT_MSG_SUCCESS 		= "支付成功";
	
	/*****************************订单退款状态********************************/
	public static final String ORD_REFUND_STAT_CODE_NOTREFUND	= "0000";
	public static final String ORD_REFUND_STAT_MSG_NOTREFUND	= "未退款";
	public static final String ORD_REFUND_STAT_CODE_APPLIED 	= "0012";
	public static final String ORD_REFUND_STAT_MSG_APPLIED 		= "已申请退款";
	public static final String ORD_REFUND_STAT_CODE_REFUNDING 	= "0011";
	public static final String ORD_REFUND_STAT_MSG_REFUNDING 	= "退款中";
	public static final String ORD_REFUND_STAT_CODE_PARTREFUND	= "0002";
	public static final String ORD_REFUND_STAT_MSG_PARTREFUND	= "部分退款";
	public static final String ORD_REFUND_STAT_CODE_SUCCESS		= "1002";
	public static final String ORD_REFUND_STAT_MSG_SUCCESS 		= "已全部退款";
	
	/*****************************交易退款状态********************************/
	public static final String REFUND_STAT_CODE_NOTREFUND	= "0000";
	public static final String REFUND_STAT_MSG_NOTREFUND	= "未退款";
	public static final String REFUND_STAT_CODE_APPLIED 	= "0012";
	public static final String REFUND_STAT_MSG_APPLIED 		= "已申请退款";
	public static final String REFUND_STAT_CODE_PROCESSING	= "0022";
	public static final String REFUND_STAT_MSG_PROCESSING	= "退款中";
	public static final String REFUND_STAT_CODE_PARTREFUND	= "0002";
	public static final String REFUND_STAT_MSG_PARTREFUND	= "部分退款";
	public static final String REFUND_STAT_CODE_FAIL 		= "0042";
	public static final String REFUND_STAT_MSG_FAIL 		= "退款失败";
	public static final String REFUND_STAT_CODE_TIMEOUT		= "0072";
	public static final String REFUND_STAT_MSG_TIMEOUT		= "退款超时";
	public static final String REFUND_STAT_CODE_SUCCESS		= "1002";
	public static final String REFUND_STAT_MSG_SUCCESS 		= "已全部退款";
	
	/*****************************前端接口应答状态（对前置系统，如网关、his前置、手机前置等）********************************/
	public static final String RESP_PARAM_STAT 				= "resp_status";
	public static final String RESP_PARAM_MSG 				= "resp_msg";
	public static final String RESP_PARAM_SIGN				= "sign";
	public static final String RESP_PARAM_SUBDEALSSN		= "sub_deal_ssn";
	public static final String RESP_PARAM_SUBDEALSTATUS 	= "sub_deal_status";
	public static final String RESP_PARAM_SUBDEALMSG 		= "sub_deal_msg";
	public static final String RESP_PARAM_SUBREFUNDSTATUS 	= "sub_refund_status";
	public static final String RESP_PARAM_SUBREFUNDMSG 		= "sub_refund_msg";
	public static final String RESP_PARAM_CUSTOMSTR 		= "custom_str";
	
	public static final String RESP_STAT_CODE_0000 			= "0000";
	public static final String RESP_STAT_MSG_0000 			= "处理成功";
	public static final String RESP_STAT_CODE_0001			= "0001";
	public static final String RESP_STAT_MSG_0001 			= "参数错误";
	public static final String RESP_STAT_CODE_0002 			= "0002";
	public static final String RESP_STAT_MSG_0002 			= "订单不存在";
	public static final String RESP_STAT_CODE_0003 			= "0003";
	public static final String RESP_STAT_MSG_0003 			= "交易不存在";
	public static final String RESP_STAT_CODE_0004 			= "0004";
	public static final String RESP_STAT_MSG_0004 			= "退款失败，订单未申请退款";
	public static final String RESP_STAT_CODE_0005 			= "0005";
	public static final String RESP_STAT_MSG_0005 			= "退款失败，订单已退款";
	public static final String RESP_STAT_CODE_0006 			= "0006";
	public static final String RESP_STAT_MSG_0006 			= "退款失败，没有可退款的交易";
	public static final String RESP_STAT_CODE_0007			= "0007";
	public static final String RESP_STAT_MSG_0007			= "退款失败";
	public static final String RESP_STAT_CODE_0008			= "0008";
	public static final String RESP_STAT_MSG_0008			= "申请退款失败，订单不存在";
	public static final String RESP_STAT_CODE_0009			= "0009";
	public static final String RESP_STAT_MSG_0009			= "申请退款失败，没有可申请退款的交易";
	public static final String RESP_STAT_CODE_0010 			= "0010";
	public static final String RESP_STAT_MSG_0010 			= "支付失败,订单已过期";
	public static final String RESP_STAT_CODE_0011 			= "0011";
	public static final String RESP_STAT_MSG_0011 			= "支付失败,订单已作废";
	public static final String RESP_STAT_CODE_0012 			= "0012";
	public static final String RESP_STAT_MSG_0012 			= "支付失败,订单有渠道正在进行支付操作";
	public static final String RESP_STAT_CODE_0013 			= "0013";
	public static final String RESP_STAT_MSG_0013 			= "支付失败,订单已全部支付完成";
	public static final String RESP_STAT_CODE_0014 			= "0014";
	public static final String RESP_STAT_MSG_0014 			= "支付失败,没有可支付的金额";
	public static final String RESP_STAT_CODE_0015 			= "0015";
	public static final String RESP_STAT_MSG_0015 			= "退款失败,订单正在退款复核中";
	public static final String RESP_STAT_CODE_9999 			= "9999";
	public static final String RESP_STAT_MSG_9999 			= "系统错误";
	
	/*****************************后端接口应答状态（对后台渠道系统等）********************************/
	
	
	
	
	
	
	/*****************************渠道参数********************************/
	
	
	
	
	/*****************************其它参数********************************/
	public static final String CURRENCY_156 			= "156";
	public static final String PAY_METHOD_0001		= "0001";//表示记录为支付
	public static final String PAY_METHOD_0002		= "0002";//表示记录为退款
	
	
	
	
	
	
	
}
